import { defHttp } from '/@/utils/http/axios';

enum Api {
  List = '/account/record/list',
  Save = '/account/record/save',
  Del = '/account/record',
}
// list
export const list = (params) => defHttp.post({ url: Api.List, params });

// 保存
export const save = (params) => defHttp.post({ url: Api.Save, params });

// 删除
export const del = (params: { ids: String }) =>
  defHttp.delete<boolean>({ url: Api.Del + `/${params.ids}` });

